package com.demo.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.demo.core.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 用户
 *
 * @author sdyang
 * @create 2018-01-11 10:12
 **/
@ApiModel(description = "用户基础信息")
@TableName("user")
public class User extends BaseModel<User> {

    @ApiModelProperty(value = "登录帐号",example = "test")
    private String loginid;

    @ApiModelProperty(value = "密码",example = "test")
    private String password;

    @ApiModelProperty(value = "用户姓名",example = "测试")
    private String username;

    @ApiModelProperty(value = "手机号码",example = "123456789")
    private String mobile;

    @ApiModelProperty(value = "微信id",example = "wxid")
    private String weixinid;

    @ApiModelProperty(value = "邮箱",example = "1234@qqc.om")
    private String email;

    @ApiModelProperty(value = "状态",example = "1")
    private Integer status = 1;// 状态：默认启用1，停用-1，锁定0

    @ApiModelProperty(value = "上次登录时间",example = "2019-04-30 10:12:28")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date last_login_time;

    @ApiModelProperty(value = "用户头像",example = "www.baidu.com")
    private String logo_url;

    @ApiModelProperty(value = "登录ip",example = "127.0.0.1")
    private String ip;

    public String getLoginid() {
        return loginid;
    }

    public void setLoginid(String loginid) {
        this.loginid = loginid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getWeixinid() {
        return weixinid;
    }

    public void setWeixinid(String weixinid) {
        this.weixinid = weixinid;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getLast_login_time() {
        return last_login_time;
    }

    public void setLast_login_time(Date last_login_time) {
        this.last_login_time = last_login_time;
    }

    public String getLogo_url() {
        return logo_url;
    }

    public void setLogo_url(String logo_url) {
        this.logo_url = logo_url;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
}
